Material type

Material type properties

Name Description Inherited Exported to Kanzi Engine
Property Types The property types whose properties can be edited in the materials of this material type No No
Preprocessor Defines Preprocessor defines to be added for shader source No No
Uniforms The uniform attributes the shader uses to render the material.
Uniforms with FIXED_UNIFORM source type have reserved names and are supplied to the shader by Kanzi engine.
Uniforms with PROPERTY_TYPE source type are specified using the properties in the materials.
Uniforms with NO_SOURCE source type do not have a source specified; use Sync with Uniforms button to fix that.
No No
Attributes The vertex attributes the shader expects to find from the vertex buffer of the models that are associated with materials of this material type.
For example, this includes the position, normal, and texture coordinates of the vertices.
If the names of the attributes in models do not match the names of the attributes in the shader, you must manually map the names.
No No

Material type available properties

Name Description Inherited Exported to Kanzi Engine
Is Used by Code Whether or not the application code uses this asset. Used for determining unused assets. No No
Visibility Across Projects Sets whether this resource is available to referencing projects:
- Project setting uses the value of the Resource Visibility Across Projects property of the project.
- Private makes the resource available only to this project.
- Public makes the resource available in the dropdown menus of referencing projects.
No No
Keep Alive Behavior The keep-alive behavior of this resource. Can be used to deny unloading of the resource. No No
Description Add a description of the purpose of this item. To export descriptions
to a plain text file, select File > Export > Export Descriptions.
When you export the kzb file, this description is not included in the
exported file.
No No

另请参阅

使用材质类型